GtkTreeView: change child repositioning to preserve locality
authorРуслан Ижбулатов <lrn1986@gmail.com>
Tue, 26 Apr 2016 21:45:15 +0000 (21:45 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 28 Apr 2016 01:35:46 +0000 (01:35 +0000)
commit96c18db0daf922e7f02f54c26043d1d2ac98f5cc
tree994168c86a9efd3175ac8e46a23b2bc234e2e89c
parent88d02583974659d1d37d825df78c79bee4c95d0e
GtkTreeView: change child repositioning to preserve locality

If there was a piece of text in the cell, then when the edit
entry is shown for that cell, it should have a piece of text
in it roughly at the same location.

Therefore, when child widget is enlarged (child preferred
size exceeds cell size), extra width should be added by
extending either left or right edge depending on text direction.

If after that the child sticks outside of the treeivew visible region,
try to push it back inside (breaking its alignment with the
cell), again, giving preference (i.e. adjusting it last)
to either left or right edge depending on text direction.

https://bugzilla.gnome.org/show_bug.cgi?id=765471
gtk/gtktreeview.c